package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.base.mapper.voipmapper.AgentinfoesMapper;
import com.base.po.voip.Agentinfoes;
import com.base.po.voip.AgentinfoesExample;
import com.base.service.AgentinfoesService;
import org.springframework.stereotype.Service;

@Service("agentinfoesService")
public class AgentinfoesServiceImpl implements AgentinfoesService {
	@Autowired
	private AgentinfoesMapper agentinfoesMapper;

	@Override
	public int countByExample(AgentinfoesExample example) {
		return agentinfoesMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(AgentinfoesExample example) {
		return agentinfoesMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return agentinfoesMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Agentinfoes record) {
		return agentinfoesMapper.insert(record);
	}

	@Override
	public int insertSelective(Agentinfoes record) {
		return agentinfoesMapper.insertSelective(record);
	}

	@Override
	public List<Agentinfoes> selectByExample(AgentinfoesExample example) {
		return agentinfoesMapper.selectByExample(example);
	}

	@Override
	public Agentinfoes selectByPrimaryKey(String id) {
		return agentinfoesMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(Agentinfoes record, AgentinfoesExample example) {
		return agentinfoesMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Agentinfoes record, AgentinfoesExample example) {
		return agentinfoesMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Agentinfoes record) {
		return agentinfoesMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Agentinfoes record) {
		return agentinfoesMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Agentinfoes> selectByAll(Agentinfoes record) {
		if (record.getAgentid() == null) {
			return null;
		}
		return agentinfoesMapper.selectByAll(record);
	}
}
